package com.boot.app.base.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.boot.app.base.domain.BaseRole;
import com.boot.app.base.vo.RoleVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseRoleMapper extends BaseMapper<BaseRole> {

    List<BaseRole> selectListByUserId(long id);

    Page<RoleVO> selectRoleVOPage(Page<RoleVO> page, @Param("ew") Wrapper<BaseRole> wrapper);

}
